package com.cucn.ingmall.order;

import com.alibaba.cloud.seata.GlobalTransactionAutoConfiguration;
import org.springframework.amqp.rabbit.annotation.EnableRabbit;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.EnableAspectJAutoProxy;
import org.springframework.session.data.redis.config.annotation.web.http.EnableRedisHttpSession;

/**
 * 使用RabbitMQ
 *
 * @author kouchaojie
 */
@EnableRabbit
@EnableAspectJAutoProxy(exposeProxy = true) //开启aspectj动态代理(即使没有接口也可以创建动态代理)对外暴露代理对象
@EnableFeignClients("com.cucn.ingmall.order.feign")
@EnableRedisHttpSession
@SpringBootApplication(exclude = GlobalTransactionAutoConfiguration.class)
@EnableDiscoveryClient
public class IngmallOrderApplication {

    public static void main(String[] args) {
        SpringApplication.run(IngmallOrderApplication.class, args);
    }

}
